package com.lqq.designPattern.bulider_pattern.factory.configFactory;

public class Client {
    public static void main(String[] args) {
        //类似于Spring
        //美式咖啡
        Coffee coffee1 = CoffeeFactory.createCoffee("american");
        System.out.println(coffee1.getName());

        System.out.println("=======");

        //拿铁咖啡
        Coffee coffee2 = CoffeeFactory.createCoffee("latte");
        System.out.println(coffee2.getName());
    }
}
